import os
from os.path import join, dirname, abspath
PROJECT_DIR = dirname(dirname(abspath(__file__)))

import sys
sys.path.insert(0, PROJECT_DIR)
from channels.routing import get_default_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cyh.settings")
import django
django.setup()
application = get_default_application()
